<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" name="viewport"
	content="width=device-width, initial-scale=1">
<!-- 页面标题 -->
<title>蜗牛拍拍管理系统</title>
<link rel="stylesheet" th:href="@{/lay/layui/css/layui.css}" />
<link rel="stylesheet" th:href="@{/moon/css/bootstrap.css}" />
<script th:src="@{/moon/js/jquery.js}"></script>
<script th:src="@{/moon/js/vue.js}"></script>
<script th:src="@{/lay/layui/layui.js}"></script>
<script th:src="@{/moon/js/bootstrap.js}"></script>

<style>
/* hr{
   margin-bottom:50px;
   border:0.5px solid #EBEBEB;
} */
.layuiadmin-big-font {
	font-size: 40px;
	color: #666;
	margin: 10px auto;
}

.cardbody-small-font {
	font-size: 13px;
	color: #666;
}

div {
	/* 	border: 0.1px solid red; */
	padding: 0;
	margin: 0;
	padding: 0;
}

.layuiadmin-card-text-top {
	font-size: 30px;
	line-height: 100%;
	height: 100%;
	color: #666;
	margin: 10px auto;
}

.layui-text-top-top {
	font-size: 30px;
	line-height: 100%;
	height: 100%;
	color: #666;
	margin: 10px auto;
}

.layuiadmin-card-text-sub {
	background-color: #f8f8f8;
	font-size: 13px;
	color: #666;
}

.layui-field-title {
	text-align: left;
}
div{
/* 	border:1px solid red; */
}


</style>


</head>
<body class="layui-layout-body">
	<div class="layui-layout layui-layout-admin">
		<!-- 头部导航栏 -->
		<div id="header"></div>
		<!-- 左侧导航栏 -->
		<div id="leftnav"></div>

		<!-- 内容主体区域 -->
		<div class="layui-body" style="text-align: center">
			<div style="width:100%;height:100%">
				<!-- 页面标题 -->


				<!-- 主体区域,根据左侧的栏点击，默认是首页 -->
				<iframe id="rightiframe" src="/auction/Admin/adminiframe/index_mainiframe" style="width:100%;height:100%"></iframe>
			</div>
		</div>
		<!-- ————————————————————————————底部区域，引入页面—————————————————————— -->
		<div id="footer"></div>
	</div>
		<script>
			$("#leftnav").load("/auction/Admin/adminiframe/leftnavfixed");
			$("#header").load("/auction/Admin/adminiframe/header");
			$("#footer").load("/auction/Admin/adminiframe/footer");

			//监听锚点变化，并获取锚点的值
			window.onhashchange = function() {
				var hash = location.hash;
				hash = hash.substring(1, hash.length);
			}

			//点击菜单时：1、改变iframe地址；2、
			function loadIframe(path) {
				//将右侧的iframe地址重置
				$("#rightiframe").attr("src", path);
				var u = window.location.href;
				var end = u.indexOf("#");
				var rurl = u.substring(0, end);
				//设置新的锚点
				window.location.href = rurl + "#" + path;
			}

			//加载页面时将锚点赋值给url
			document.addEventListener('DOMContentLoaded', function() {
				var hash = location.hash;
				var url = hash.substring(1, hash.length);
				$("#rightiframe").attr("src", url);
			}, false)

			//注意：导航 依赖 element 模块，否则无法进行功能性操作
			layui.use('element', function() {
				var element = layui.element;
			});

			
		</script>
		
		
</body>
</html>